<?php


namespace app\admin\model;
use think\Model;
class Bdapi extends Model{

    public function show(){
        $result=$this->where("1=1")->find();
        if ($result){
            $result=$result->toArray();
        }
        return $result;
    }



    public function save_config($id,$token){
        $this->where("id","=",$id)->update([
           "token"=>$token
        ]);
    }




    public function sel_token(){
        $result=$this->where("1=1")->value("token");
        return $result;
    }

}